<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />

<!--[if lt IE 9]>
<script type="text/javascript" src="../Public/js/html5.js"></script>
<script type="text/javascript" src="../Public/js/respond.min.js"></script>
<script type="text/javascript" src="../Public/js/PIE_IE678.js"></script>
<![endif]-->
<link type="text/css" rel="stylesheet" href="../Public/css/H-ui.css"/>
<link type="text/css" rel="stylesheet" href="../Public/css/H-ui.admin.css"/>
<link type="text/css" rel="stylesheet" href="../Public/font/font-awesome.min.css"/>
<!--[if IE 7]>
<link href="../Public/font/font-awesome-ie7.min.css" rel="stylesheet" type="text/css" />
<![endif]-->
<title>添加产品分类</title>
</head>
<body>
<div class="pd-20">
  <div class="Huiform">
    <form action="" method="post" id="form1">
      <table class="table table-bg">
        <tbody>
            <tr>
            <th width="100" class="text-r"><span class="c-red">*</span> 父类：</th>
            <td>
             <select name="info[pid]" style="width: 180px;height: 30px">
              <option value="0">==选择==</option>
                  {$info.pidOption}
                   
             </select>

			</td>
          </tr>
          <tr>
            <th width="100" class="text-r"><span class="c-red">*</span> 分类名称：</th>
            <td><input type="text" style="width:170px" class="input-text"  placeholder="分类名称" value="{$info.name}" id="name" name="info[name]">
		<span id="name_tips" style="color:#FF0000"></span>	
			</td>
          </tr>
         
  <!--         <tr>
            <th class="text-r">静态文件名：</th>
            <td><input type="text" style="width:250px" class="input-text" placeholder="静态文件名" value="{$info.filename}" id="filename" name="info[filename]">	
			</td>
          </tr> -->
         
          <tr>
            <th></th>
            <td><button class="btn btn-success radius" id="submit" type="submit"><i class="icon-ok"></i>确定</button></td>
          </tr>
        </tbody>
      </table>
	      <input type="hidden" name="info[cid]" value="{$info.cid}" />
	 
    </form>
  </div>
</div>
<script type="text/javascript" src="../Public/js/jquery.min.js"></script>
<script type="text/javascript" src="../Public/js/jquery.form.js"></script>
<script type="text/javascript" src="../Public/js/H-ui.admin.js"></script> 
<script type="text/javascript" src="App/Home/View/Public/layer/layer.js"></script>

<script type="text/javascript">

$(function(){
	 $("#submit").click(function(){
	  $("#name_tips").html("");
     if($("#name").val()==""){
	     $("#name_tips").html("请输入分类名称");
		 return false;
	 }
     commonAjaxSubmit();
	  return false;

	});
  
});
 
</script>
</body>
</html>